import request from '@/utils/request'

/*
*
* 获取订单分页的接口
*  */
export const fetchOrderListAPI = (data) => {
  return request({
    url: '/manager/order-manager/order/page',
    method: 'POST',
    data
  })
}

/*
*
* 获取订单详情的接口
*  */
export const fetchOrderDetailAPI = (id) => {
  return request({
    url: `/manager/order-manager/order/${id}`,
    method: 'GET'
  })
}

/*
* 获取货物列表的接口
*  */
export const fetchCargoListAPI = (orderId) => {
  return request({
    url: `/manager/order-manager/cargo`,
    method: 'GET',
    params: {
      orderId
    }
  })
}
/*
* 获取订单轨迹的接口
*  */
export const getOrderTrackAPI = (id) => {
  return request({
    url: `/manager/transport-order-manager/track/${id}`,
    method: 'GET'
  })
}
